<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>设置 - 会员中心 -  {:C('UU_SITE_NAME')}</title>
<link href="__ROOT__/{:C('UU_TPL_DIR')}/public/css/user.css" rel="stylesheet" type="text/css">
<include file="public:header" />
<div class="usermain">
  <div class="mleft">
<include file="left_nav" />
  </div>
  
  <div class="mright">
  
    
	
    <div class="mbox">
	  	<div class="utopt">
			  <div class="tit">账号设置</div>
			<include file="set_nav" />
			<div class="clear"></div>
	  </div>
	  
	  <br><br>

         
	 <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" WIDTH="650" HEIGHT="450" id="myMovieName">
						<PARAM NAME=movie VALUE="__ROOT__/{:C('UU_TPL_DIR')}/public/flash/avatar.swf">
						<PARAM NAME=quality VALUE=high>
						<PARAM NAME=bgcolor VALUE=#FFFFFF>
						<param name="flashvars" value="imgUrl=__ROOT__/{:C('UU_TPL_DIR')}/public/flash/photodefault.jpg&uploadUrl={:urlencode(U('upload/falsh'))}&uploadSrc=false" />
						<EMBED src="__ROOT__/{:C('UU_TPL_DIR')}/public/flash/avatar.swf" quality=high bgcolor=#FFFFFF WIDTH="650" HEIGHT="450" wmode="transparent" flashVars="imgUrl={$user.avatar}&uploadUrl={:urlencode(U('upload/falsh'))}&uploadSrc=false" NAME="myMovieName" ALIGN="" TYPE="application/x-shockwave-flash" allowScriptAccess="always" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
					</OBJECT>
	 
	 
	 
	 
	 
					
		
		
    </div>
	
	 
	
	
  </div>
   <div class="clear"></div>
</div>
<include file="public:footer" />

<script type="text/javascript">
$(document).ready(function()
{

$('.J_user_edit_username').live('click',function() {
		 var UUDialog = $(this).dialog({
		        title: false,
        		loading: true,
				footer: false,
				header: false,
				border: false,
				backdrop: false
		});
		 $.getJSON(ajaxURL, { act: "ajax_edit_username"}, function(json){
					if (json.status==0){
						UUDialog.hide();
						disapperTooltip("remind", json.content);
					}else if (json.status==1){
						UUDialog.hide();
						var editDialog = $(this).dialog({
								title: "修改用户名",
								content:json.content,
								footer: true,
								header: true,
								border: true,
								innerPadding: true,
								backdrop: true,
								yes: function() {
									
									username=$('#ajax_edit_username_input').val()
										$.getJSON(ajaxURL, { act: "ajax_edit_username",username:username}, function(json){
										if (json.status==0){
											disapperTooltip("remind", json.content);
										}else if (json.status==1){
											$('#J_uname').text(json.username);
 											disapperTooltip("success",json.content);
										}else{
											disapperTooltip("remind","修改失败，未知错误");
										}
								});
									
 	
									
							}
						});
					}else{
						UUDialog.hide();
						disapperTooltip("remind","未知错误");
					}
		});
	});
	$('.J_user_edit_mobile').live('click',function() {
		 var UUDialog = $(this).dialog({
		        title: false,
        		loading: true,
				footer: false,
				header: false,
				border: false,
				backdrop: false
		});
		 $.getJSON(ajaxURL, { act: "ajax_edit_mobile"}, function(json){
					if (json.status==0){
						UUDialog.hide();
						disapperTooltip("remind", json.content);
					}else if (json.status==1){
						UUDialog.hide();
						var MDialog = $(this).dialog({
								title: "修改手机号",
								content:json.content,
								footer: true,
								header: true,
								border: true,
								innerPadding: true,
								backdrop: true
						});
					}else{
						UUDialog.hide();
						disapperTooltip("remind","未知错误");
					}
		});
	});
});
</script>
</body>
</html>
